package com.jn.server;

import cn.hutool.core.convert.Convert;

import javax.swing.*;
import java.awt.*;

/**
 * @author 江南大学1033190417
 * @date 2022/4/7 20:04
 */
public class Main {
    public static void main(String[] args) {
        View frame=new View();
        Dimension screenSize=Toolkit.getDefaultToolkit().getScreenSize();
        Dimension frameSize= frame.getSize();
        if (frameSize.height> screenSize.height)
            frameSize.height= screenSize.height;
        if (frameSize.width> screenSize.width)
            frameSize.width= screenSize.width;
        frame.setLocation((screenSize.width- frameSize.width)/2,(screenSize.height- frameSize.height)/2);
        frame.setVisible(true);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        Convert.convert(int.class,20);
    }
}
